package com.gome.ocean.service.gddl.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.gome.ocean.dao.gddl.AppConfigDAO;
import com.gome.ocean.dao.model.gddl.AppConfigBO;
import com.gome.ocean.service.gddl.AppConfigSerivce;


@Service("appConfigSerivce")
@Transactional("transactionManager")
public class AppConfigSeriveImpl implements AppConfigSerivce {

    @Autowired
    private AppConfigDAO appConfigDAO;

    @Override
    public boolean saveAppConfigBO(AppConfigBO appConfigBO) {
        return appConfigDAO.saveAppConfigBO(appConfigBO) > 0;
    }

    @Override
    public boolean deleteAppConfigBOById(Long id) {
        return appConfigDAO.deleteAppConfigBOById(id) > 0;
    }

    @Override
    public boolean updateAppConfigBOById(AppConfigBO appConfigBO) {
        return appConfigDAO.updateAppConfigBOById(appConfigBO) > 0;
    }

    @Override
    public AppConfigBO findAppConfigBOById(Long id) {
        return appConfigDAO.findAppConfigBOById(id);
    }

    @Override
    public AppConfigBO findAppConfigBOByAppId(Long AppId) {
        return appConfigDAO.findAppConfigBOByAppId(AppId);
    }

}
